package com.label.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.label.Model.Do.Persons;
import com.label.Model.Query.MessageQuery;
import com.label.Model.Query.ProcessQuery;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface PersonsService extends IService<Persons> {

    List<Persons> getOne(Persons persons);

    List<Persons> getAll();

    List<Persons> getMy();

    Long addPersons(Persons persons);

    Boolean deletePersonsById(Long Id) ;

    Boolean resumePersonsById(Long Id);

    Boolean deletePersonsByIdReal(Long Id);

    Boolean updatePersonsById(Persons persons);

    Boolean cheakPersonsName(String name);

    Boolean savePersonasData(ProcessQuery processQuery) throws Exception;

    Boolean deletePersonasData(String id) throws Exception;

    String dataProcess(String id, String sql, String theme) throws Exception;

    Boolean sendMessage(MessageQuery messageQuery);

    Boolean sendMessage2(MessageQuery messageQuery, MultipartFile file) throws IOException;

    List<Persons> getMyByTheme(String theme);
}
